﻿/*
 * Created by SharpDevelop.
 * User: issuser
 * Date: 2010-12-9
 * Time: 15:18
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Data.Common;
using NLite.Data.Schema;
using NLite.Data.Driver.Internal;
using NLite.Data.Schema.Provider.Internal;

namespace NLite.Data.Driver
{
	/// <summary>
    /// Description of SQLiteDriver.http://www.mysql.com/products/connector/net/
	/// </summary>
	public class SQLiteDriver:ReflectionBasedDriver
	{
		public SQLiteDriver():base("System.Data.SQLite.SQLiteConnection,System.Data.SQLite")
		{
            SchemaProvider = new SQLiteSchemaProvider();
		}
		
		public override bool UseNamedPrefixInSql
		{
			get { return true; }
		}

		public override bool UseNamedPrefixInParameter
		{
			get { return true; }
		}

		public override string NamedPrefix
		{
			get { return "@"; }
		}

		public override bool SupportsMultipleOpenReaders
		{
			get { return false; }
		}
		
		public override bool SupportsMultipleQueries
		{
			get { return true; }
		}

        public override bool SupportsCollectionOperation
        {
            get
            {
                return false;
            }
        }

    }

   
}
